<html>
<head>
</head>

<body>

<table>
<tr>
<td>Onoma</td><td><input type=text name=forname></td>
</tr>
<tr>
<td>Epitheto</td><td><input type=text name=surname></td>
</tr>
<tr>
<td>Username</td><td><input type=text name=username></td>
</tr>
<tr>
<td>Password</td><td><input type=text name=password></td>
</tr

<? php
        $username = mysql_real_escape_string($username);
		$password = mysql_real_escape_string($password);
		$surname = mysql_real_escape_string($surname);
		$forname = mysql_real_escape_string($forname);
		
		$query = "UPDATE `users` SET `password` = '{$password}', `lastName` = {$surname}, `firstName` = '{$forname}' WHERE `username` = '{$username}'";
		$result = DBLib::execute_query($query);
		return $result;
?>

</table>

</body>
</html>